﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Places.master" AutoEventWireup="false" CodeFile="PlacesTag.aspx.vb" Inherits="PlacesTag" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>This Places shows the tags are for each picture</h2>
    <asp:GridView ID="dgPlaces" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="ID" DataSourceID="dsPlaces">
        <Columns>
            <asp:BoundField DataField="PlaceTag" HeaderText="PlaceTag" 
                SortExpression="PlaceTag" />
            <asp:BoundField DataField="PlaceID" HeaderText="PlaceID" 
                SortExpression="PlaceID" />
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="dsPlaces" runat="server" 
    ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
    ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
    SelectCommand="SELECT [PlaceTag], [PlaceID], [ID] FROM [tblPlaceTagJun]"></asp:SqlDataSource>
</asp:Content>

